#include <GL/gl.h>

#include "Class/Manager/Graphics.hpp"

namespace		Manager
{
  void			Graphics::Clear()
  {
	if (this->IsOpened())
	  {
		this->_Window->Clear(this->_Color);
		glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	  }
  }

  void			Graphics::Display()
  {
	if (this->IsOpened())
	  this->_Window->Display();
  }


  void			Graphics::Draw(sf::Sprite &sprt)
  {
	this->_Window->Draw(sprt);
  }

  void			Graphics::Draw(sf::Sprite *sprt)
  {
	this->_Window->Draw(*sprt);
  }
}
